﻿<Window x:Class="DonkeyCleaner.Client.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="608" Width="697"
        AllowsTransparency="True"
        WindowStyle="None"
        Background="Transparent"
        MouseDown="Window_MouseDown"
        ResizeMode="NoResize"
        >
    <Border CornerRadius="30 15 30 30" 
            Background="#ef000000"
            BorderBrush="Gray"
            BorderThickness="5 2 2 5"
            >
        <Grid>
            <StackPanel>
                <StackPanel Orientation="Horizontal" Height="154" Visibility="Visible">
                    <Image Source="/images/donkey_face.png"
                           Width="181"
                           Height="154"
                           />
                    <Image Source="/images/donkey_cleaner.png"
                           Width="491"
                           Height="154"
                           />
                </StackPanel>
                <Grid Height="413">
                    <StackPanel Margin="0,0,0,5">
                        <Border BorderThickness="1"
                                BorderBrush="Gray"
                                CornerRadius="15"
                                Width="600"
                                Height="45"
                                >
                            <StackPanel Orientation="Horizontal">
                                <TextBlock Text="Examinar directorio:" 
                                           Foreground="White"
                                           Height="19"
                                           Padding="10 0 10 0"
                                           />
                                <TextBox Name="txtRootDirectory"
                                         Width="200"
                                         Height="30" 
                                         IsEnabled="False"
                                         />
                                <Button Name="btnBrowse" 
                                        Width="30"
                                        Height="30"
                                        Content="..."
                                        Margin="10 0 0 0"
                                        Click="btnBrowse_Click"
                                        />
                                <Button Name="btnScan" 
                                        Content="Escanear directorio" 
                                        Width="205" 
                                        Margin="10 0 0 0" Height="34" 
                                        Click="btnScan_Click"
                                        IsEnabled="False"
                                        />
                            </StackPanel>
                        </Border>
                        <Expander Header="Tipo de escaneo"
                                  Width="197"
                                  HorizontalAlignment="Right"
                                  Margin="0 0 60 0"
                                  >
                            <StackPanel>
                                <RadioButton Name="rbtDirectoriosClonados" 
                                             GroupName="escaneo"
                                             Content="Directorios Clonados" />
                                <RadioButton Name="rbtArchivosClonados" 
                                             GroupName="escaneo"
                                             Content="Archivos Clonados" />
                                <RadioButton Name="rbtBaseDatos"
                                             GroupName="escaneo"
                                             Content="Verificar con base de datos" />
                                <RadioButton Name="rbtTotal" 
                                             GroupName="escaneo"
                                             Content="Completo"
                                             />
                            </StackPanel>
                        </Expander>
                        <ListView Name="lstMalware" 
                                  Width="620"
                                  Height="167"
                                  Margin="0 20 0 0"
                                  >
                            <ListView.View>
                                <GridView>
                                    <GridViewColumn Header="Archivo" Width="300">
                                        <GridViewColumn.CellTemplate>
                                            <DataTemplate>
                                                <TextBlock Text="{Binding Name}" />
                                            </DataTemplate>
                                        </GridViewColumn.CellTemplate>
                                    </GridViewColumn>
                                    <GridViewColumn Header="Tamaño" Width="100">
                                        <GridViewColumn.CellTemplate>
                                            <DataTemplate>
                                                <TextBlock Text="{Binding Size}" />
                                            </DataTemplate>
                                        </GridViewColumn.CellTemplate>
                                    </GridViewColumn>
                                    <GridViewColumn Header="Tipo amenaza" Width="200">
                                        <GridViewColumn.CellTemplate>
                                            <DataTemplate>
                                                <TextBlock Text="{Binding MalwareType}" />
                                            </DataTemplate>
                                        </GridViewColumn.CellTemplate>
                                    </GridViewColumn>
                                </GridView>
                            </ListView.View>
                        </ListView>
                        <StackPanel Orientation="Horizontal">
                            <Button Name="btnDelete" 
                                    IsEnabled="False"
                                    Content="Borrar Archivos"
                                    Width="171"
                                    Height="50"
                                    Margin="50 20 0 0 " 
                                    Click="btnDelete_Click" />
                            <Button Name="btnUpdate"
                                    Content="Actualizar base de datos"
                                    Width="171"
                                    Height="50"
                                    Margin="20 20 0 0" 
                                    Click="btnUpdate_Click" />
                            <Button Name="btnSalir"
                                    Content="Salir"
                                    Width="171"
                                    Height="50"
                                    Margin="20 20 0 0" 
                                    Click="btnSalir_Click" />
                        </StackPanel>
                        <TextBlock Foreground="Lime"
                                   HorizontalAlignment="Center"
                                   Margin="0 30 0 0"
                                   >
                            Blog: http://donkeysharp.blogspot.com
                            <LineBreak />
                            Facebook: http://facebook.com/donkeysharp
                            <LineBreak />
                            Twitter: @donkeysharp
                        </TextBlock>
                    </StackPanel>
                </Grid>
            </StackPanel>
        </Grid>
    </Border>
</Window>
